Cycle Console (Beta Release)

Introduction

Cycle Console provides a browser-based interface for running and monitoring OIPA Cycle work. Use Dashboard to run cycles manually, Recent Runs to review recent executions, and Monitor to inspect cycle work items. If enabled, use Cycle Scheduler to configure recurring cycle jobs.

Dashboard

Use the Dashboard tab to manually execute cycle tasks.

  1. Select a task from the task list.

  2. Enter or verify the required values, such as Company ID and Activity ID.

  3. Select the action for the task. A confirmation banner appears when the action starts or finishes successfully.

  4. To review the associated work items, select Show Monitor.

Cycle Task Task Name
01 Begin Pre-Company
02 Begin Pre-Plan
03 Begin Policy
04 Begin Post-Plan
05 Begin Post-Company
07 Begin Pre-Client
08 Begin Post-Client  
D Advance System Date

Monitor

Review cycle work items

  1. Open Monitor from Dashboard, or select Open for a run in Recent Runs.

  2. Review the Cycle GUID, status filter, and work-item table.

  3. Use Previous and Next to move through the work items.

Recent Runs

Review a recent run

  1. Open Recent Runs to see the latest cycle executions.

  2. To reload the list, select Refresh.

  3. To review a run, select Open in its row.

When you open a recent run, the console shows only its monitoring details. However, execution controls are unavailable.

Cycle Scheduler

Use the Cycle Scheduler tab to create, update, activate, disable, delete, and review scheduled cycle jobs.

View Scheduled Jobs

  1. Open Cycle Scheduler.

  2. To find a job, search by name or filter by All, Active, Disabled, or Error status.

  3. Use Previous and Next to move through the jobs.

  4. Select a job to review its details, ordered tasks, execution history, and run steps.

Create a Scheduler Job

  1. Select Add New.

  2. Enter a unique job name.

  3. Select a schedule frequency

    • Once,

    • Daily,

    • Weekly, or

    • Monthly.

  4. Enter the required schedule time values.

  5. Select one or more tasks from Available Tasks.

  6. Review the tasks in the Selected Order list.

  7. Move tasks up or down to set their execution order.

  8. Save the job.

Tasks run in the specified order. Each task starts only after the preceding task finishes.

Update a Scheduler Job

  1. Select a job in the Scheduled Jobs table.

  2. Select Edit.

  3. Change the schedule or task order as needed.

  4. Save the job.

When you update an active job, the database scheduler definition is refreshed. The next run uses the updated schedule and task order.

Activate or Disable a Scheduler Job

Use the job’s row action to activate or disable it.

Status Behavior
ACTIVE The underlying DBMS scheduler job is enabled and can run at the next scheduled time.
DISABLED The underlying DBMS scheduler job is disabled and does not run automatically.

Delete a Scheduler Job

  1. Select Delete for the job.

  2. Confirm the deletion.

Deleting the job removes its saved definition, ordered tasks, execution history, run-step history, and underlying DBMS_SCHEDULER job.

Execution History and Run Steps

Execution history shows the most recent runs for the selected scheduler job. Use the paging controls to move through the history. Select a run to review the results of its ordered task steps.

Status Meaning
SUCCESS The child task was completed successfully.
FAILED The child task failed or returned a non-success response.
SKIPPED The child task did not start because an earlier task in the same job failed.
RUNNING The job or child task is still in progress.

If a child task returns an “existing process is already running” response, the scheduler waits and retries until that process finishes or the configured scheduler wait limit is reached.

REST APIs and database reference

Login

  • POST /login/processLogin: Authenticates Cycle Console credentials

Console

GET /config

Returns cycle console feature flags and build version.
GET /tasks/recent Returns recent cycle executions.
GET /tasks/{CycleGuid} Returns details for the selected cycle.
GET /tasks/{CycleGuid}/items Returns cycle work-item details, including status and paging filters.
POST /tasks Submits manual cycle work, sequence work, cycle actions, and Advance SystemDate requests.

Scheduler

GET /scheduler/tasks

Returns active scheduler task definitions.
GET /scheduler/jobs Returns scheduler jobs with status, created-by, search, and paging filters.
GET /scheduler/jobs/{JobGuid} Returns a scheduler job and its ordered task steps.
POST /scheduler/jobs Creates a scheduler job.
PUT /scheduler/jobs/{JobGuid} Updates a scheduler job and its ordered task steps.
POST /scheduler/jobs/{JobGuid}/activate Activates a scheduler job and its associated DBMS scheduler job.
POST /scheduler/jobs/{JobGuid}/disable Disables a scheduler job and its associated DBMS scheduler job.
POST /scheduler/jobs/{JobGuid}/update Update a scheduler job and its associated DBMS scheduler job.
POST /scheduler/jobs/{JobGuid}/delete Delete a scheduler job and its associated DBMS scheduler job.
DELETE /scheduler/jobs/{JobGuid} Deletes the scheduler job, task steps, run history, and associated DBMS scheduler job.
GET /scheduler/jobs/{JobGuid}/runs Returns paginated execution history for a scheduler job.
GET /scheduler/runs/{RunId} Returns a scheduler run and its ordered run-step details.

 

Database Changes

Table Name Description
ASCYCLE_JOB_SCHEDULER Stores scheduler job metadata, frequency, status, audit information, last- and next-run details, and the associated DBMS scheduler job name.
ASCYCLE_TASK_DEF Stores available scheduler task definitions, including endpoint URLs, HTTP methods, payload templates, timeouts, and active indicators.
ASCYCLE_SCHEDULE_JOB Stores the ordered child tasks associated with each scheduler job.
ASCYCLE_SCHEDULE_RUN Stores scheduler job execution history.
ASCYCLE_SCHEDULE_RUN_STEP Stores the ordered child-task execution results for each scheduler job run.
ASCYCLE_SCHEDULER_CONFIG Stores the required attributes for DBMS jobs to communicate with Cycle Application.

Constraints and Indexes

Object Description
UK_SCHED_JOB_PARENT_SEQ Ensures that each scheduler job has a unique task sequence number.
FK_SCHED_JOB_PARENT Links ordered scheduler task steps to their parent scheduler job.
IDX_SCHED_JOB_PARENT Indexes scheduler task steps by parent job.
FK_RUN_PARENT Links scheduler run history to the parent scheduler job.
FK_RUN_STEP_RUN Links run-step history to the parent scheduler run.

Seeded Task Definitions

Cycle Task Task Name
01 Begin Pre-Company
02 Begin Pre-Plan
03 Begin Policy
04 Begin Post-Plan
05 Begin Post-Company
07 Begin Pre-Client
08 Begin Post-Client  
D Advance System Date

Packages and Procedures

Description
CYCLE_SCHEDULER_PKG - which contains the scheduler job creation, update, activation, disablement, deletion, and parent-job execution logic.
SP_CYCLE_SCHEDULER_CREATE_JOB - Job Creation
SP_CYCLE_SCHEDULER_UPDATE_JOB. - Job Update
SP_CYCLE_SCHEDULER_ACTIVATE_JOB. - Job Activate
SP_CYCLE_SCHEDULER_DISABLE_JOB. - Job Disable
SP_CYCLE_SCHEDULER_DELETE_JOB. - Job Delete

Scheduler Setup

Scheduler Connectivity and Base URL Configuration

Cycle Scheduler jobs run from the database through DBMS_SCHEDULER. When a scheduled job starts, it CYCLE_SCHEDULER_PKG.RUN_PARENT_JOB invokes the Cycle REST service by using UTL_HTTP.

Therefore, the callback URL, network route, database ACL, and HTTPS trust configuration must be valid from the database tier. Browser access or connectivity from the Tomcat host alone is not sufficient.

Environments

Environment Recommended Configuration
Local single host The database and Tomcat run on the same host. localhost can be used. Example: https://localhost:8444/CycleWeb
Development or QA with separate database and Tomcat hosts Use a Tomcat host name, internal DNS name, or load balancer address that the database host can resolve and access. Do not use localhost.
On-premises production Use an internal FQDN or internal load balancer. Configure firewall access from the database host to the Cycle endpoint port. Use HTTPS with a CA-issued certificate or a certificate chain trusted by the database wallet.
OCI production Use a private load balancer, private endpoint, or internal DNS name accessible from the database subnet or Autonomous Database private endpoint. Before enabling scheduler jobs, validate VCN routing, NSG rules, security lists, DNS resolution, and the database outbound-access policy.

Note: Avoid public call-back URLs in production environments.

Base URL Configuration

Set CYCLE_SERVICE_BASE_URL to the cycle context root that is reachable from the database tier. The value must include the context root and must not end with a forward slash.

Valid examples:

http://cycle-host.example.com:8082/CycleService

https://cycle-host.example.com/CycleService

https://cycle-private-lb.example.internal/CycleService

Do not use the following values unless the database and Cycle web application run on the same host:

http://localhost:8082/CycleService

https://localhost:8444/CycleService

Database Grants

  • SELECT COUNT(1) FROM DBA_SYS_PRIVS WHERE GRANTEE = '<V12>' AND PRIVILEGE = 'CREATE JOB';

  • GRANT CREATE JOB TO <V12>;

  • SELECT COUNT(1) FROM DBA_TAB_PRIVS WHERE GRANTEE = '<V12>' AND OWNER = 'SYS' AND TABLE_NAME = 'DBMS_SCHEDULER' AND PRIVILEGE = 'EXECUTE';

  • GRANT EXECUTE ON SYS.DBMS_SCHEDULER TO <V12>;

Database network ACL (Access Control List)

The database schema must have network ACL permission to access the Cycle host and port. Without this permission, DBMS_SCHEDULER callbacks fail before the request reaches Tomcat.

Replace the following placeholders before executing the script:

Placeholder Description
<cycle-host> Host name configured in CYCLE_SERVICE_BASE_URL.
<port> Port configured in CYCLE_SERVICE_BASE_URL.
<CYCLE_SCHEMA> Cycle or PAS runtime schema.
BEGIN
  DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(
    HOST       => '<cycle-host>',
    LOWER_PORT => <port>,
    UPPER_PORT => <port>,
    ACE        => XS$ACE_TYPE(
         PRIVILEGE_LIST => XS$NAME_LIST('http'),
         PRINCIPAL_NAME => '<CYCLE_SCHEMA>',
         PRINCIPAL_TYPE => XS_ACL.PTYPE_DB));
END;
/

If the environment uses multiple cycle host names or load balancers, create an ACL entry for each exact host name and port that the database calls.

Note: DBA and EXECUTE_CATALOG_ROLE grants are required.

HTTP/HTTPS Configuration

HTTP can be used in local, development, or tightly controlled internal test environments.

Required HTTP Configuration

  1. Set CYCLE_SERVICE_BASE_URL to an http:// URL.

  2. Confirm that the database tier can resolve and reach the host and port.

  3. Configure the database network ACL for that host and port.

  4. Confirm that Tomcat or the load balancer listens on the configured HTTP port.

  5. Confirm that ASCYCLE_TASK_DEF and ASCYCLE_SCHEDULE_JOB use relative endpoints, such as rest/services/tasks.

HTTP callbacks do not require CYCLE_HTTPS_WALLET_PATH.

HTTPS Callback Configuration

HTTPS is recommended for production, OCI, and any environment in which traffic extends beyond a single trusted host.

  1. Set CYCLE_SERVICE_BASE_URL to an https:// URL.

  2. Confirm that the URL hostname matches the certificate Common Name (CN) or Subject Alternative Name (SAN).

  3. Confirm that the database tier can resolve and reach the HTTPS host and port.

  4. Configure the database network ACL for that host and port.

  5. Configure a database wallet that trusts the server certificate chain.

  6. Set CYCLE_HTTPS_WALLET_PATH in ASCYCLE_SCHEDULER_CONFIG.

  7. Give the Oracle Database operating-system account read access to the wallet files.

Create or Update an Auto-Login Wallet

Create an auto-login wallet on the database host and add the required trusted certificates:

orapki wallet create -wallet <wallet_directory> -auto_login
orapki wallet add -wallet <wallet_directory> -trusted_cert -cert <root_ca_certificate_file>
orapki wallet add -wallet <wallet_directory> -trusted_cert -cert <intermediate_ca_certificate_file>

For local self-signed testing, import the Cycle server certificate. For production and OCI environments, import the issuing CA certificate chain rather than a self-signed server certificate whenever possible.

Configure the Wallet Path

Set or update the wallet path in ASCYCLE_SCHEDULER_CONFIG:

MERGE INTO ASCYCLE_SCHEDULER_CONFIG DEST
USING (
SELECT 'CYCLE_HTTPS_WALLET_PATH' AS CONFIG_NAME,
'file:<wallet_directory>' AS CONFIG_VALUE
FROM DUAL
) SRC
ON (DEST.CONFIG_NAME = SRC.CONFIG_NAME)
WHEN MATCHED THEN
UPDATE SET DEST.CONFIG_VALUE = SRC.CONFIG_VALUE,
DEST.UPDATED_BY = '<DB USER>',
DEST.UPDATED_GMT = SYSTIMESTAMP
WHEN NOT MATCHED THEN
INSERT (CONFIG_NAME, CONFIG_VALUE, DESCRIPTION, UPDATED_BY, UPDATED_GMT)
VALUES (
SRC.CONFIG_NAME,
SRC.CONFIG_VALUE,
'Oracle wallet path used by DBMS Scheduler HTTPS callbacks.',
'INSTALL',
SYSTIMESTAMP
);

Wallet path examples:

Operating System Example
Linux or Unix file:/u01/app/oracle/network/admin/cycle-wallet
Windows file:C:/app/oracle/network/admin/cycle-wallet

The wallet must be accessible from the database host because UTL_HTTP runs in a database process. For RAC or another multi-node database, provide the same absolute path on every node that can execute the job. Use secure replication or an approved shared filesystem.

RAC and Multi-Node Databases

Make the wallet available and readable on every database node that can execute a scheduler job.

Autonomous Database

Follow OCI requirements for outbound HTTPS access, wallet and certificate trust, and private endpoint routing. When the database service or network topology requires it, use the private_target option or the applicable ROUTE_OUTBOUND_CONNECTIONS setting.

Configuration required to be added in the ASCYCLE_SCHEDULER_CONFIG table

CONFIG_NAME Required Description
CYCLE_SERVICE_BASE_URL Required for Oracle scheduler Base URL used by the database to call Cycle REST endpoints. Must include the context root andmust not end with /. Example: https://cycle-host.example.com/CycleWeb.
CYCLE_SCHEDULER_INTERNAL_TOKEN Required for Oracle scheduler Shared internal token sent by the database as the CycleSchedulerToken HTTP header when calling /rest/services/tasks. Must match the Java runtime token
CYCLE_HTTPS_WALLET_PATH Required only for HTTPS callbacks Oracle wallet path used by UTL_HTTP.SET_WALLET. Example: file:/u01/app/oracle/network/admin/cycle-wallet. Not required for HTTP.

Cycle Console Configuration

Feature Flags

Configure the following properties in Cycle.properties:

Property Behavior
application.enableCycleDashboard=true Enables login and the Cycle Console, including Dashboard, Recent Runs, Monitor, and scheduler-capable navigation.
application.enableCycleDashboard=false Displays the classic build-version page without requiring login.
application.enableCycleScheduler=true Displays the Scheduler tab only when the Cycle Dashboard is enabled and the database type is Oracle.

Note: SQL Server and DB2 support manual execution, recent runs, and monitor functionality only. DBMS Scheduler integration is supported only for Oracle databases.

Multi-Node and Cloud Deployments

For multi-node or cloud deployments:

  • All Cycle instances must use the same WEB Coherence cache region.

  • Token-signing configuration must be consistent across all application pods or nodes.

Login Configuration

Configure the following properties for Cycle Console login and token management:

Property Description
application.keyStorePath Location of the keystore used for token signing.
application.hmacKeyStoreAlias Alias of the HMAC key in the keystore.
OIPA_KEYSTORE_PWD Password for the configured keystore.
session.timeout Session timeout value.

Scheduler Internal Token Configuration

The scheduler uses an internal token to authenticate database-initiated REST callbacks.

The Java application reads the token from one of the following sources:

  • -Dcycle.scheduler.internalToken (Environment Arguments)
  • CYCLE_SCHEDULER_INTERNAL_TOKEN (Database)
  • cycle.scheduler.internalToken (cycle.properties)

The database reads the token from CYCLE_SCHEDULER_INTERNAL_TOKEN in ASCYCLE_SCHEDULER_CONFIG.

The token value configured for the Java application and the database must match.

Scheduler Base URL Configuration

  • application.cycleSchedulerBaseUrl to configure the base URL used by the scheduler for internal callbacks.

  • application.cycleSchedulerAllowRequestBaseUrl=false prevents the application from deriving the base URL from an incoming request. Keep this setting disabled for production, OCI, and shared on-premises deployments to ensure that scheduler callbacks use a controlled and trusted endpoint.

OIRW/Palette Authorization

Users or security groups require the following permissions:

Service Permission Purpose
CycleService SubmitTask Allows users to submit manual cycle tasks.
CycleService CycleSchedulerView Allows users to view scheduler jobs and execution history.
CycleService CycleSchedulerAdmin Allows users to create, update, activate, disable, and delete scheduler jobs.

Obtain the Trusted Certificates

Production or CA-Issued Certificate

Obtain the following from the enterprise PKI team, certificate provider, or load-balancer administrator:

  1. Root CA certificate.

  2. Every intermediate CA certificate between the root and server certificate.

Prefer Base64 PEM files. Confirm each certificate before import:

orapki cert display -cert <certificate_file> -complete

The Subject of one certificate must match the Issuer of the next certificate in the chain. Confirm that the certificates are within their validity period.

The server/leaf certificate normally does not need to be imported when its full issuing CA chain is trusted. Do not import the Tomcat private key into this wallet for one-way TLS.

Local Self-Signed Tomcat Certificate

For local testing, export the public certificate from the Tomcat PKCS12 keystore. Replace the alias, keystore, and output paths with local values:

keytool -list -v -storetype PKCS12 -keystore C:\Tomcat\conf\<tomcat_keystore>.p12
keytool -exportcert -rfc -storetype PKCS12 -alias <tomcat_certificate_alias> -keystore C:\Tomcat\conf\<tomcat_keystore>.p12 -file C:\Tomcat11_Cycle\conf\cycle-server.crt

The export contains only the public certificate. Never copy the Tomcat keystore, private key, or keystore password into the database trust wallet.

If the local certificate is self-signed, import cycle-server.crt as a trusted certificate. The certificate SAN must include the host used by the database,for example localhost only when the database and Tomcat run on the same host.

Inspect the Certificate Presented by an Endpoint

OpenSSL can be used from a host with network access to inspect the certificate chain presented by Tomcat or the load balancer:

openssl s_client -connect <cycle-host>:<cycle-port> -servername <cycle-host> -showcerts

Use this to diagnose a missing intermediate certificate, but obtain production trust certificates from an approved source before importing them.

Create a New Auto-Login Wallet

Run orapki from an Oracle installation compatible with the database. The create command prompts for a wallet password. Use the prompt instead of putting a production password on the command line or in shell history.

Linux or Unix:

mkdir -p <wallet_directory>
orapki wallet create -wallet <wallet_directory> -auto_login

Windows local example:

mkdir C:\Tomcat\conf\cycle-db-wallet
orapki wallet create -wallet C:\Tomcat\conf\cycle-db-wallet -auto_login

The wallet directory should contain:

- ewallet.p12: Password-protected wallet.
- cwallet.sso: Auto-login wallet used by UTL_HTTP without a stored password.

Protect both files. They must not be committed to source control or packaged in the Cycle distribution.

Update an Existing Wallet

Before changing a production wallet:

  1. Confirm that no unapproved process is modifying it.

  2. Back up ewallet.p12 and cwallet.sso to a protected location.

  3. Display and record the trusted certificates currently in the wallet.

  4. Import only missing or replacement CA certificates.

  5. Re-enable auto-login after import to refresh cwallet.sso.

Commands:

orapki wallet display -wallet <wallet_directory> -summary
orapki wallet add -wallet <wallet_directory> -trusted_cert -cert <root_ca_certificate_file>
orapki wallet add -wallet <wallet_directory> -trusted_cert -cert <intermediate_ca_certificate_file>
orapki wallet create -wallet <wallet_directory> -auto_login

Modification commands may prompt for the wallet password even though runtime access uses cwallet.sso without a password.

Import the Complete Trust Chain

Chain Import the root CA first. Then import each intermediate CA, from the highest intermediate to the issuing intermediate, using the supplied orapki wallet add commands:

orapki wallet add -wallet <wallet_directory> -trusted_cert -cert <root_ca_certificate_file>
orapki wallet add -wallet <wallet_directory> -trusted_cert -cert <intermediate_ca_1_certificate_file>
orapki wallet add -wallet <wallet_directory> -trusted_cert -cert <intermediate_ca_2_certificate_file>

For a self-signed local certificate, import the Cycle server certificate instead:

orapki wallet add -wallet <wallet_directory> -trusted_cert -cert <cycle_server_certificate_file>

Before adding a certificate, use orapki wallet display to check whether its Subject or fingerprint is already present.

Verify the Wallet

Display the final wallet:

orapki wallet display -wallet <wallet_directory> -summary

For detailed certificate information:

orapki wallet display -wallet <wallet_directory> -complete

Verify all of the following:

  • cwallet.sso and ewallet.p12 exist.

  • The expected root and intermediate certificates appear as trusted entries.

  • Certificates are not expired or not-yet-valid.

  • The endpoint hostname matches the server certificate SAN.

  • No private server key was imported for this one-way TLS use case.

Set Database Host Permissions

The Oracle Database operating-system account needs permission to traverse the wallet directory and read ewallet.p12 and cwallet.sso. Tomcat permissions alone are insufficient.

On Linux or Unix, apply the ownership and restrictive permissions required by your Oracle installation standard.

chown -R oracle:<oracle_group> <wallet_directory>
chmod 750 <wallet_directory>
chmod 640 <wallet_directory>/ewallet.p12
chmod 640 <wallet_directory>/cwallet.sso

Do not apply these example identities blindly. Use the actual database service account and approved group.

On Windows, identify the Oracle Database service account in Windows Services. Grant it Read and Read & Execute permissions on the directory and wallet files.